package com.example.fw;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: raimbek
 * Date: 14.04.13
 * Time: 15:46
 */
public class ProcessHelper extends HelpersBase {
    private Process process;

    public ProcessHelper(ApplicationManager manager) {
        super(manager);
    }

    public void startAppUndertest() throws IOException {
        String command = manager.getProperty("app.path");
        process = Runtime.getRuntime().exec(command);
    }

    public void stopAppUnderTest() {
        process.destroy();
    }
}
